package org.ccams.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.context.support.WebApplicationContextUtils;

public final class WebBeanFactory {
	public static final Object getBean(String beanId, HttpServletRequest request) {
		return WebApplicationContextUtils.getWebApplicationContext(
				request.getSession().getServletContext()).getBean(beanId);
	}
}
